<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业福利商城 - 登录</title>
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-image: linear-gradient(120deg, #e0f7ff 0%, #f5f7fa 100%);
        }

        .login-container {
            display: flex;
            width: 950px;
            height: 580px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .left-section {
            flex: 1;
            background: linear-gradient(135deg, #409EFF 0%, #64b5ff 100%);
            color: white;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .right-section {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background-color: white;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 12px;
            color: #409EFF;
            font-weight: bold;
            font-size: 20px;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 600;
        }

        .welcome-text {
            font-size: 28px;
            font-weight: 500;
            margin-bottom: 15px;
        }

        .system-intro {
            font-size: 16px;
            line-height: 1.6;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .features {
            margin-top: 30px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .feature-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 12px;
            font-size: 12px;
        }

        .login-form {
            width: 100%;
        }

        .form-title {
            font-size: 24px;
            font-weight: 500;
            color: #303133;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
        }

        .form-title-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background-color: #409EFF;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 10px;
            color: white;
        }

        .el-form-item {
            margin-bottom: 22px;
        }

        .el-button {
            width: 100%;
            height: 44px;
            font-size: 16px;
            margin-top: 10px;
        }

        .links {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            font-size: 14px;
        }

        .links a {
            color: #409EFF;
            text-decoration: none;
        }

        .links a:hover {
            text-decoration: underline;
        }

        .system-highlight {
            margin-top: 30px;
            padding: 15px;
            background-color: #f0f9ff;
            border-radius: 6px;
            border-left: 4px solid #409EFF;
        }

        .highlight-title {
            font-weight: 500;
            color: #409EFF;
            margin-bottom: 8px;
        }

        .highlight-text {
            font-size: 14px;
            color: #606266;
            line-height: 1.5;
        }

        .role-switch {
            position: absolute;
            top: 30px;
            right: 40px;
            display: flex;
            background-color: #f0f2f5;
            border-radius: 20px;
            padding: 4px;
        }

        .role-btn {
            padding: 8px 16px;
            border-radius: 16px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            border: none;
            background: transparent;
        }

        .role-btn.active {
            background-color: white;
            color: #409EFF;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .admin-info {
            margin-top: 20px;
            padding: 12px;
            background-color: #fff6f6;
            border-radius: 6px;
            border-left: 4px solid #f56c6c;
            font-size: 14px;
            color: #f56c6c;
        }

        .card-exchange {
            margin-top: 20px;
            padding: 12px;
            background-color: #f0f9ff;
            border-radius: 6px;
            border-left: 4px solid #67c23a;
            font-size: 14px;
            color: #67c23a;
        }

        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
                width: 95%;
                height: auto;
            }

            .left-section {
                padding: 30px 20px;
            }

            .right-section {
                padding: 30px 20px;
            }

            .role-switch {
                position: relative;
                top: auto;
                right: auto;
                margin-bottom: 20px;
                justify-content: center;
            }
        }
    </style>
</head>
<body>
<div class="login-container">
    <!-- 左侧宣传区域 -->
    <div class="left-section">
        <div class="logo">
            <div class="logo-icon">福</div>
            <div class="logo-text">企业福利商城</div>
        </div>
        <h1 class="welcome-text">欢迎使用员工福利系统</h1>
        <p class="system-intro">
            专为企业员工设计的福利兑换平台，通过"卡+卡密"机制安全便捷地兑换福利商品，无需绑定银行卡或在线支付。
        </p>

        <div class="features">
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>安全便捷的卡密兑换</span>
            </div>
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>丰富的福利商品选择</span>
            </div>
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>简洁高效的操作流程</span>
            </div>
            <div class="feature-item">
                <div class="feature-icon">✓</div>
                <span>管理员专属后台管理</span>
            </div>
        </div>
    </div>

    <!-- 右侧登录区域 -->
    <div class="right-section">
        <!-- 角色切换 -->
        <div class="role-switch">
            <button class="role-btn active" id="employee-btn">员工登录</button>
            <button class="role-btn" id="admin-btn">管理员登录</button>
        </div>

        <!-- 员工登录表单 -->
        <div id="employee-form" class="login-form">
            <h2 class="form-title">
                <div class="form-title-icon">员</div>
                员工登录
            </h2>

            <div class="el-form-item">
                <label class="el-form-item__label">账户</label>
                <div class="el-form-item__content">
                    <div class="el-input">
                        <input type="text" class="el-input__inner" placeholder="请输入用户名/手机号/邮箱">
                    </div>
                </div>
            </div>

            <div class="el-form-item">
                <label class="el-form-item__label">密码</label>
                <div class="el-form-item__content">
                    <div class="el-input">
                        <input type="password" class="el-input__inner" placeholder="请输入密码">
                    </div>
                </div>
            </div>

            <div class="el-form-item">
                <button type="button" class="el-button el-button--primary">
                    <span>员工登录</span>
                </button>
            </div>

            <div class="card-exchange">
                <strong>福利卡兑换：</strong>如果您有福利卡，请先登录账户，然后在个人中心兑换福利卡额度。
            </div>

            <div class="links">
                <a href="#">忘记密码?</a>
                <a href="#">注册新账户</a>
            </div>
        </div>

        <!-- 管理员登录表单 -->
        <div id="admin-form" class="login-form" style="display: none;">
            <h2 class="form-title">
                <div class="form-title-icon" style="background-color: #f56c6c;">管</div>
                管理员登录
            </h2>

            <div class="el-form-item">
                <label class="el-form-item__label">管理员账户</label>
                <div class="el-form-item__content">
                    <div class="el-input">
                        <input type="text" class="el-input__inner" placeholder="请输入管理员账户">
                    </div>
                </div>
            </div>

            <div class="el-form-item">
                <label class="el-form-item__label">密码</label>
                <div class="el-form-item__content">
                    <div class="el-input">
                        <input type="password" class="el-input__inner" placeholder="请输入管理员密码">
                    </div>
                </div>
            </div>

            <div class="el-form-item">
                <label class="el-form-item__label">验证码</label>
                <div class="el-form-item__content">
                    <div style="display: flex; gap: 10px;">
                        <div class="el-input" style="flex: 1;">
                            <input type="text" class="el-input__inner" placeholder="请输入验证码">
                        </div>
                        <div style="width: 120px; height: 40px; background-color: #f5f7fa; border-radius: 4px; display: flex; justify-content: center; align-items: center; font-weight: bold; color: #409EFF; cursor: pointer;">
                            3A4B
                        </div>
                    </div>
                </div>
            </div>

            <div class="el-form-item">
                <button type="button" class="el-button" style="background-color: #f56c6c; border-color: #f56c6c;">
                    <span>管理员登录</span>
                </button>
            </div>

            <div class="admin-info">
                <strong>安全提示：</strong>管理员账户具有系统管理权限，请妥善保管账户信息。
            </div>

            <div class="links">
                <a href="#">忘记密码?</a>
                <a href="#">联系系统管理员</a>
            </div>
        </div>

        <div class="system-highlight">
            <div class="highlight-title">系统特色</div>
            <div class="highlight-text">
                本系统采用"卡+卡密"兑换模式，员工可通过福利卡密直接兑换商品，无需绑定银行卡或在线支付，安全便捷。
            </div>
        </div>
    </div>
</div>

<script>
    document.addEventListener('DOMContentLoaded', function() {
        const employeeBtn = document.getElementById('employee-btn');
        const adminBtn = document.getElementById('admin-btn');
        const employeeForm = document.getElementById('employee-form');
        const adminForm = document.getElementById('admin-form');

        employeeBtn.addEventListener('click', function() {
            employeeBtn.classList.add('active');
            adminBtn.classList.remove('active');
            employeeForm.style.display = 'block';
            adminForm.style.display = 'none';
        });

        adminBtn.addEventListener('click', function() {
            adminBtn.classList.add('active');
            employeeBtn.classList.remove('active');
            adminForm.style.display = 'block';
            employeeForm.style.display = 'none';
        });

        // 模拟登录功能
        const loginButtons = document.querySelectorAll('.el-button');
        loginButtons.forEach(button => {
            button.addEventListener('click', function() {
                const isAdmin = this.closest('#admin-form') !== null;
                const role = isAdmin ? '管理员' : '员工';
                alert(`${role}登录功能正在开发中...`);
            });
        });
    });
</script>
</body>
</html>
